﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="../../fly.js" type="text/javascript"></script>
    <script type="text/javascript">
        //skip,take
        var arr = [1, 2, 3]

        var a = arr.skip(1).take(1)
        alert(a)

        var a = arr.skip(-1).take(1)
        alert(a)

        var a = arr.skip().take(1)
        alert(a)

        //group
        arr = [{ k: 1, v: "a" }, { k: 2, v: "b" }, { k: 1, v: "c" }, { k: 1, v: "d" }, { k: 2, v: "e"}]
        var gs = arr.group("o=>o.k")
        alert(gs.length)

        var gs = arr.group("o=>o.k","o=>o.v")
        alert(gs.length)

        alert(gs.hash)

    </script>
</head>
<body>
</body>
</html>
